<?php
namespace App;
use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Carbon\Carbon;
class Admin extends Authenticatable
{
    //
    use Notifiable;
    public $timestamps = false;
    protected $fillable = [
    	'name','password','adddate'
    ];
    protected $hidden = [
    	'remember_token',
    ];
    /**
     * time 2017-12-9
     * author Kowy
     * tool Phpstorm
     * @param laravel accessor (修改器)
     */
    public function getAdddateAttribute($value)
    {
        return date('Y-m-d',$value);
    }


}
